Greatest Common Divisor for Integers

Definition

Given a,bZ, the greatest common denominator of a and b denoted by gcd(a,b) is defined as the greatest integer which divides both a and b.

This definition of the greatest common denominator depends on the fact that Z is totally ordered. A modification is made to define the gcd for general rings, however this generalisation is not entirely consistent with the above definition, which is why this is a different note.

This inconsistency is characterised in the following theorem.

Inconsistency of Integer and Ring GCD

If a=b=0 then gcd(a,b) is not define in the context of integers, yet in the context of the general ring definition gcd(a,b)={0}.

If either a or b is non-zero, and gcd(a,b)=d by the integer definition, then gcd(a,b)={d,d} by the ring definition.

Proof

By the definition of divisibility, because n×0=0, n0 for any integer n. Hence there is no greatest such integer.

By the general ring definition, it is clear that 00, and if n0, that is we have some other common divisor, then n0 so 0 is the greatest such divisor.

Suppose either a or b are non-zero and let gcd(a,b)=d by the integer definition. Then because all GCDs are associates in an integral domain, we have in the ring definition that gcd(a,b)={d,d} because the only units of the integers are 1 and 1.